<?php
include_once(APP_LOADER_PATH . 'amal/setting.amal.PatternValidation.inc.php');


$tValidation = new InputValidation();
$tIsDefault = false;

$mSubmenuSelect = ($_POST[submenu] ? $_POST[submenu] :
                $_GET[submenu]);
$tValidation->SetInput($mSubmenuSelect);
$tValidation->SetPattern(pUnsignedInt);
$mSubmenuSelect = $tValidation->CheckValidation();

switch ($mSubmenuSelect) {
    //MASTER DATA
    //111..199
    ////
    //INISIALISASI DATA
    //211..299
    ////
    //DONATUR
    case 311 : {
            $tPage = 'view/donatur/daftar-donatur.php';
            break;
        }
    case 319 : {
            $tPage = 'view/donatur/exec/exec-donatur.php';
            break;
        }
    //DONATUR
    case 321 : {
            $tPage = 'view/transaksi/daftar-transaksi.php';
            break;
        }
    case 329 : {
            $tPage = 'view/transaksi/exec/exec-transaksi.php';
            break;
        }
        
        
    default: {
            $tIsDefault = true;
            $tPage = "home.php";
            break;
        }
}

if ($tIsDefault)
    $myApp->SetPage($tPage);
else
    $myApp->SetPage(APP_LOADER_PATH . 'amal/' . $tPage);
?>

